package com.winit.deploy.bean;

/**
 * Created by wangjian on 16/8/11.
 */
public class WinitTomcatInfo extends WinitInfo{

    /**
     * tomcat发布应用时需要参数
     */
    private String serverPath;//tomcat路径
    private String logPath;//日志路径 logs/catalina.out
    private String projectDir;//工程文件路径 webapps
    private String backUpPath;//备份文件存放路径 带文件名
    private String backUpDir;//备份目录
    private String httpPort;//tomcat端口
    private String system;//机器系统  centos or ubuntu
    private String javaHome;//jdk路径

    private String warName;

    /**
     * 向终端机推送war包时使用
     * 推送成功后,保存war包名称为 warName
     */
    private String warPath;//beetle机器保存发布war包的路径,带文件名
    private String warTempDir;//终端上临时保存war包的路径,不带文件名

    public WinitTomcatInfo(String serverPath,String logPath,String projectDir,String backUpPath
            ,String httpPort,String system,String javaHome,String warName
            ,String serverIp,String sshPort,String warPath,String warTempDir,String userName,String keyFilePath
            ,String projectName,String editionNum,String configPath,String envName,String areaName){
        this.serverPath = serverPath;
        this.logPath = logPath;
        this.projectDir = projectDir;
        this.backUpPath = backUpPath;
        this.httpPort = httpPort;
        this.system = system;
        this.javaHome = javaHome;
        this.warName = warName;
        this.serverIp = serverIp;
        this.sshPort = sshPort;
        this.warPath = warPath;
        this.warTempDir = warTempDir;
        this.userName = userName;
        this.keyFilePath = keyFilePath;
        this.projectName = projectName;
        this.editionNum = editionNum;
        this.configPath = configPath;
        this.envName = envName;
        this.areaName = areaName;
    }
    public String getServerPath() {
        return serverPath;
    }

    public void setServerPath(String serverPath) {
        this.serverPath = serverPath;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    public String getProjectDir() {
        return projectDir;
    }

    public void setProjectDir(String projectDir) {
        this.projectDir = projectDir;
    }

    public String getHttpPort() {
        return httpPort;
    }

    public void setHttpPort(String httpPort) {
        this.httpPort = httpPort;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }

    public String getJavaHome() {
        return javaHome;
    }

    public void setJavaHome(String javaHome) {
        this.javaHome = javaHome;
    }

    public String getWarName() {
        return warName;
    }

    public void setWarName(String warName) {
        this.warName = warName;
    }

    public String getBackUpPath() {
        return backUpPath;
    }

    public void setBackUpPath(String backUpPath) {
        this.backUpPath = backUpPath;
    }

    public String getWarPath() {
        return warPath;
    }

    public void setWarPath(String warPath) {
        this.warPath = warPath;
    }

    public String getWarTempDir() {
        return warTempDir;
    }

    public void setWarTempDir(String warTempDir) {
        this.warTempDir = warTempDir;
    }

    public String getBackUpDir() {
        return backUpDir;
    }

    public void setBackUpDir(String backUpDir) {
        this.backUpDir = backUpDir;
    }
}
